<?php

// 需要验证的路由
use App\Middleware\AdminMiddleware;
use Hyperf\HttpServer\Router\Router;

Router::addGroup("",function (){
    require __DIR__ . '/../routes/authWeb.php';
},['middleware'=>[AdminMiddleware::class]]);

// 不需要鉴权验证的路由
Router::addGroup("",function (){
    require __DIR__ . '/../routes/noAuthWeb.php';
});